<?php
	
	require('includes/connect.php');

	$oldPassword = $_POST['pass'];

	$newPassword = $_POST['newPass'];

	$rePassword = $_POST['confirmPass'];

	$user_id = $_POST['user_id'];

		$qry = mysql_query("update users set `password`= '$newPassword' where user_id = ".$user_id);

	header('location: settings.php');
	

?>